package com.winning.pmph.entity;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Table;
import java.util.List;

/**
 * 中间术语库
 *
 * @author 刘亚飞
 * @date 2021-05-10
 */
@Getter
@Setter
@Table(name = "term_between")
public class TermBetween extends TermCommon {

    private static final long serialVersionUID = 5515447775857347377L;

    /**
     * 0 未入标准术语库
     */
    public static final Integer STATUS_NO_ENTER = 0;
    /**
     * 1 与标准术语库有冲突
     */
    public static final Integer STATUS_CONFLICT = 1;
    /**
     * 2 已入标准术语库
     */
    public static final Integer STATUS_ENTER_STANDARD = 2;

    /**
     * 对应图书ID
     */
    private String termBookMetadataId;

    /**
     * 正名同义词
     */
    private String synonym;

    @TableField(exist = false)
    private String queryType;

    @TableField(exist = false)
    private int termBetweenCount;

    @TableField(exist = false)
    private List<TermBetween> betweenList;

    @TableField(exist = false)
    private String nameAndSynonym;

    /**
     * 0 未入标准术语库  1 与标准术语库有冲突 2 已入标准术语库
     */
    private Integer status;
    /**
     * 页面展示序号
     */
    @TableField(exist = false)
    private int sortNo;

    @TableField(exist = false)
    private List<String> nameList;

    @TableField(exist = false)
    private JSONArray nameSource;

    /**
     * 方便相关术语根据级别排序展示
     */
    @TableField(exist = false)
    private Integer bookCategory;
}